package magic8ball;


public class Magic8Ball {

	private String[] answers = new String[] { "Signs point to yes.", "Yes.", "Reply hazy, try again.", "Without a doubt.",
			"My sources say no.", "As I see it, yes.", "You may rely on it.", "Concentrate and ask again.", "Outlook not so good.",
			"It is decidedly so.", "Better not tell you now.", "Very doubtful.", "Yes - definitely.", "It is certain.",
			"Cannot predict now.", "Most likely.", "Ask again later.", "My reply is no.", "Outlook good.", "Don't count on it." };


	public String getAnswer() {
		String theAnswer;

		theAnswer = answers[(int) (Math.random() * answers.length)];
		return theAnswer;
	}

}
